package com.example.testanimation;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;
import com.lenovo.nova.util.BaseActivity;

/**
 * Created by scenic on 1/13/15.
 */
public class AnimationDrawableActivity extends BaseActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.animation_draw_activity_main);
        ImageView imgView = (ImageView) findViewById(R.id.imageView);
        AnimationDrawable drawable = (AnimationDrawable) getResources().getDrawable(R.drawable.watting);
        imgView.setImageDrawable(drawable);
        drawable.start();
    }
}